﻿#region Using

using System;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using BlogEngine.Core;
using BlogEngine.Core.Web.Controls;
using System.Net.Mail;
using System.Text.RegularExpressions;
using System.Collections.Generic;

#endregion

public partial class book : BlogBasePage
{

    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        List<Book> books = Book.AllBook;
        var path = string.Format("{0}themes/{1}/BookView.ascx", Utils.ApplicationRelativeWebRoot, BlogSettings.Instance.GetThemeWithAdjustments(this.Request.QueryString["theme"]));
        foreach (Book book in books)
        {
            var bookView = (BookViewBase)this.LoadControl(path);
            bookView.Book = book;
            divCoupon.Controls.Add(bookView);
        }

        Page.Title = Server.HtmlEncode("我的藏书");
        base.AddMetaTag("description", Utils.StripHtml("我的藏书"));
    }
}